# -*- coding: utf-8 -*-
"""
正则
"""

import re

x = 'syy is studying python'
y = 'python is studied by syy'

result1 = re.match('python', x)
result2 = re.match('python', y)

print(result1)
print(result2)

result3 = re.search('python', y)
print(result3)
print(result3.span())
print(result3.groups())

result4 = re.findall('python', x)
print(result4)
